<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="gae.colopl.*" %>
<%@ page import="gae.colopl.bean.*" %>
<%@ page import="java.util.*" %>
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>お土産一括ギフト</title>
  </head>

  <body>
    <h3>お土産一括ギフト完了</h3>
    <br>
  <%
  User user = (User)session.getAttribute("userInfo");
  List<String> success = (List<String>)session.getAttribute("present.souvenir.success");
  List<String> error = (List<String>)session.getAttribute("present.souvenir.error");
  
  if (success.size() > 0) {
      for (int i = 0; i < success.size(); i++) {
  %>
  <div><%=success.get(i) %></div>
  <%
      }
  }
  if (error.size() > 0) {
      for (int i = 0; i < error.size(); i++) {
  %>
  <div><%=error.get(i) %></div>
  <%
      }
  }
  %>
    <br>
    <div><a href="<%=response.encodeUrl("selectArea.do") %>">地域の選択に戻る</a></div>
    <div><a href="<%=response.encodeUrl("selectColonyForSouvenir.do") %>">コロニーの選択に戻る</a></div>
    <div><a href="<%=response.encodeUrl("menu.do") %>">メニュー</a></div>
    <br>
    <div><a href="<%=response.encodeUrl("logout.do") %>">ログアウト</a></div>
  </body>
</html>
